Skip to content

PDFCLOUD-5555 Add zip and unzip client methods#20

Merged
datalogics-tsmith merged 5 commits intopdfrest:mainfrom
datalogics-cgreen:pdfcloud-5464-zip
Feb 18, 2026
Merged

PDFCLOUD-5555 Add zip and unzip client methods#20
datalogics-tsmith merged 5 commits intopdfrest:mainfrom
datalogics-cgreen:pdfcloud-5464-zip

Conversation

@datalogics-cgreen
Copy link
Copy Markdown
Contributor

@datalogics-cgreen datalogics-cgreen commented Jan 20, 2026

Introduces client support for ZIP and Unzip tools/endpoints.

Adds unit tests covering both ZIP and Unzip functionality.

Ensures feature parity by pairing each new endpoint with dedicated tests.

@datalogics-gwalczak datalogics-gwalczak changed the title Pdfcloud 5464 zip PDFCLOUD-5464 zip Jan 21, 2026
@datalogics-cgreen datalogics-cgreen changed the title PDFCLOUD-5464 zip PDFCLOUD-5555 Add zip and unzip client methods Jan 30, 2026
Assisted-by: Codex
Assisted-by: Codex
Assisted-by: Codex
Comment thread src/pdfrest/models/_internal.py
@datalogics-cgreen datalogics-cgreen marked this pull request as ready for review February 12, 2026 22:14
Note use of `noqa: S105` in test_unzip_file.py. This is to silence warnings over a test password value used only in testing.

Assisted-by: Codex
Copy link
Copy Markdown
Contributor

@datalogics-kam datalogics-kam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with some tests added by Codex.

@datalogics-cgreen
Copy link
Copy Markdown
Contributor Author

I'll merge this following the next rebase. Certain restrictions forbid me from doing so right now.

- Introduced async tests for `unzip_file`:
  - `test_async_unzip_file_requires_zip`: Verifies validation for non-ZIP input.
  - `test_async_unzip_file_single_input`: Ensures validation for single ZIP
    file restriction.

- Introduced async tests for `zip_files`:
  - `test_async_zip_files_request_customization`: Validates request customization
    with query parameters, headers, body data, and timeout configuration.
  - `test_async_zip_files_requires_input`: Checks validation for empty input.
  - `test_async_zip_files_rejects_invalid_output`: Ensures validation for
    invalid output file names.

- Mocked API transport for all tests to simulate responses and validate
  exception handling.

Assisted-by: Codex
@datalogics-tsmith datalogics-tsmith merged commit d74d92f into pdfrest:main Feb 18, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants